import httpRequest from '@/utils/hqqtRequest'

enum API {
    // 获取品牌信息
    PRODUCT_URL = '/admin/product/baseTrademark/',
    // 添加品牌信息
    POST_PRODUCT_URL = '/admin/product/baseTrademark/save',
    // 修改品牌信息
    PUT_PRODUCT_URL = '/admin/product/baseTrademark/update',
    // 删除品牌信息
    REMOVE_PRODECT_URL = '/admin/product/baseTrademark/remove/'
}

// 获取品牌信息
export const getProdectAPI =  (data: any) => httpRequest({ url: API.PRODUCT_URL + `${data.page}/${data.limit}` })

// 添加品牌信息
export const postProduceAPI = (data: object) => httpRequest({ url: API.POST_PRODUCT_URL, method: 'POST', data })

// 修改品牌信息
export const putProduceAPI = (data: object) => httpRequest({ url: API.PUT_PRODUCT_URL, method: 'PUT', data })

// 删除品牌信息
export const removeProduceAPI = (id: Number) => httpRequest<any, any>({ url: API.REMOVE_PRODECT_URL + id, method: 'DELETE' })

